package com.qidian.hw.service;

import com.qidian.hw.pojo.Solution;
import com.qidian.hw.tools.dto.Pager;

import java.util.ArrayList;

/**
 * @Author ꒰ঌ(李ᆺ琛)໒꒱
 * @Date 2022/8/19 20:02
 * @Version 1.8
 */
public interface SolutionService {
    //添加解决方案
    int saveSolution(Solution solution);

    //删除解决方案
    int deleteSolution(long solutionId);

    //修改解决方案
    int updateSolution(Solution solution);

    //查询全部修改方案
    ArrayList<Solution> listSolution();

    //根据编号查询解决方案
    Solution querySolutionById(long solutionId);

    //分页模糊查询
    Pager queryByPage(int page, int size, String title, int catId);

    //批量删除
    int deleteBatch(String ids[]);
}
